xenpaging: clear page content after evict
authorOlaf Hering <olaf@aepfle.de>
Tue, 11 Oct 2011 09:46:28 +0000 (10:46 +0100)
committerOlaf Hering <olaf@aepfle.de>
Tue, 11 Oct 2011 09:46:28 +0000 (10:46 +0100)
commit62530296c71a6572e6ae82ffe3a309ab6540d53a
treef808259a3e3d6dbd8c3734c1c49403567ecb3970
parent080559d289bb3410a148b4cb4a0a4adbdcdf9540
xenpaging: clear page content after evict

If the guest happens to read from the gfn while xenpaging is in the process of
evicting the page, the guest may read zeros instead of actual data.
Also if eviction fails the page content will be corrupted and xenpaging wont
attempt to restore the page.

Remove page scrubbing from pager and do it after successful eviction.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
tools/xenpaging/xenpaging.c
xen/arch/x86/mm/p2m.c